<template>
<!--    <home></home>-->

    <router-view></router-view>
    <div class="nav">
        <router-link to="/home" class="tab-bar-item" >
            <div>首页</div>
        </router-link>

        <router-link to="/category" class="tab-bar-item">
            <div>分类</div>
        </router-link>

        <router-link to="/shopCart" class="tab-bar-item">
            <div>购物车</div>
        </router-link>

        <router-link to="/profile" class="tab-bar-item">
            <div>我的</div>
        </router-link>
    </div>

</template>

<script>
//import error from './views/Error'
import Home from "@/views/home/Home";

export default {
  name: 'App',
  components: {
      Home,


  }
}
</script>

<style lang="scss">
@import url('./assets/CSS/base.css');
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

.nav{
    background-color: #f6f6f6;
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
}

.nav .tab-bar-item{
    flex: 1;
    text-align: center;

    height: 50px;
    font-size: 18px;
}
</style>
